package com.wu.gconduit.realtime.bean

import java.text.SimpleDateFormat
import java.util.Date

case class StartupLog(mid: String,
                      uid: String,
                      appId: String,
                      area: String,
                      os: String,
                      channel: String,
                      logType: String,
                      version: String,
                      ts: Long,
                      var logDate: String, //天
                      var logHour: String) { //小时
  val d: Date = new Date(ts)

  //  格式化时间
  logDate = new SimpleDateFormat("yyyy-MM-dd").format(d)
  logHour = new SimpleDateFormat("HH").format(d)

}


